<!DOCTYPE HTML>
<html lang="en">
<head>
  <meta name="copyright" content=
  "Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
  <meta charset="utf-8">
  <script src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" ></script>
  <link rel="STYLESHEET" href="../book.css" type="text/css">
  <title>Ant Editor</title>
</head>
<body>
  <h1 class="Head">Ant Editor</h1>
  <p>The following preferences can be changed on the <a class="command-link" href=
  'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ant.ui.AntEditorPreferencePage)")'>
  <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="command link"> <strong>Ant &gt; Editor</strong></a>
  preference page.</p>
  <h2>Appearance Options</h2>
  <table class="border" style="width:80%">
    <thead>
      <tr>
        <th style="width:25%">Option</th>
        <th>Description</th>
        <th style="width:8%">Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Mark occurrences of the selected element in the current buildfile</td>
        <td>This option allows you to select elements and mark occurrences in the current buildfile.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Keep marks when selection changes</td>
        <td>This option allows you to keep marks when the selection changes.</td>
        <td style="text-align:center">On</td>
      </tr>
    </tbody>
  </table>
  <h2>Syntax Options</h2>
  <p>The Foreground options located on the Syntax tab, allow you to format the font of comments, constant strings, DTD
  declarations, processing instructions, tags and text. The Preview pane allows you to see your changes before you
  apply them.</p>
  <table class="border" style="width:80%">
    <thead>
      <tr>
        <th style="width:25%">Option</th>
        <th>Description</th>
        <th style="width:8%">Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Foreground</td>
        <td>This table is used to change the foreground colour of the selected element (within the table).</td>
        <td style="text-align:center"></td>
      </tr>
      <tr>
        <td>Colour</td>
        <td>This option allows you to select a colour to set for the selected foreground element.</td>
        <td style="text-align:center"></td>
      </tr>
      <tr>
        <td>Bold</td>
        <td>This option allows you to set the bold state of the selected foreground element.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Italic</td>
        <td>This option allows you to set the italic state of the selected foreground element.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Preview</td>
        <td>Shows you a preview of the changes made to the selected foreground element.</td>
        <td style="text-align:center"></td>
      </tr>
    </tbody>
  </table>
  <h2>Problems Options</h2>
  <p>The Problems options allow you to ignore all buildfile problems or to specify the specific files that you do not
  want the Ant Editor to check for problems. You can also set the severity level for buildfile problems such as task
  configuration, an incomplete classpath, property setting tasks, import tasks, and security problems.</p>
  <table class="border" style="width:80%">
    <thead>
      <tr>
        <th style="width:25%">Option</th>
        <th>Description</th>
        <th style="width:8%">Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Ignore all buildfile problems</td>
        <td>This option allows you to ignore all buildfile problems by default.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Names</td>
        <td>This option allows you to specify the names of buildfiles that will NOT be checked for problems in the Ant
        editor. Entries in this field are comma-separated.</td>
        <td style="text-align:center"></td>
      </tr>
      <tr>
        <td>Task configuration</td>
        <td>This option allows you to set the severity for task configuration problems.</td>
        <td style="text-align:center">Ignore</td>
      </tr>
      <tr>
        <td>Incomplete classpath</td>
        <td>This option allows you to set the severity for incomplete classpath problems.</td>
        <td style="text-align:center">Warning</td>
      </tr>
      <tr>
        <td>Property setting tasks</td>
        <td>This option allows you to set the severity for property setting tasks problems.</td>
        <td style="text-align:center">Ignore</td>
      </tr>
      <tr>
        <td>Import tasks</td>
        <td>This option allows you to set the severity for import tasks problems.</td>
        <td style="text-align:center">Warning</td>
      </tr>
      <tr>
        <td>Security problems</td>
        <td>This option allows you to set the severity for security problems.</td>
        <td style="text-align:center">Warning</td>
      </tr>
    </tbody>
  </table>
  <h2>Folding Options</h2>
  <p>The Folding options allow you to enable folding when opening a new editor and to specify which region types should
  be folded.</p>
  <table class="border" style="width:80%">
    <thead>
      <tr>
        <th style="width:25%">Option</th>
        <th>Description</th>
        <th style="width:8%">Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Enable folding when opening a new editor</td>
        <td>This option allows you to always enable folding for any newly created Ant editors.</td>
        <td style="text-align:center">On</td>
      </tr>
      <tr>
        <td>DTD blocks</td>
        <td>This option allows you to always have DTD blocks in a buildfile automatically folded when opened in an Ant
        editor.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Comments</td>
        <td>This option allows you to always have comments in a buildfile automatically folded when opened in an Ant
        editor.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Defining tasks</td>
        <td>This option allows you to always have defining tasks in a buildfile automatically folded when opened in an
        Ant editor.</td>
        <td style="text-align:center">Off</td>
      </tr>
      <tr>
        <td>Targets</td>
        <td>This option allows you to always have targets in a buildfile automatically folded when opened in an Ant
        editor.</td>
        <td style="text-align:center">Off</td>
      </tr>
    </tbody>
  </table>
  <h3 class="related">Related Concepts</h3><a href="../concepts/concepts-antsupport.htm">Ant support</a>
  <h3 class="related">Related Reference</h3><a href="ref-anteditor.htm">Ant Editor</a><br>
  <a href="../reference/ref-antprefs.htm">General Ant preferences</a><br>
  <a href="../reference/ref-antruntimeprefs.htm">Ant runtime preferences</a><br>
  <a href="../reference/ref-antformatter.htm">Ant formatter preferences</a><br>
  <a href="../reference/ref-anttemplates.htm">Ant templates preferences</a>
</body>
</html>
